<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/common/taglibs.jsp" %>
<div class="main-content">
    <div class="main-content-inner">
        <%@include file="/WEB-INF/common/back/breadcrumb.jsp" %>
        <div class="page-content">
            <form id="addForm" class="form-horizontal" role="form">
                <c:forEach items="${fieldMap['edit']}" var="field" varStatus="st">
                    <c:set var='fieldname' value="${field.name}" scope="page"/>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right">
                                ${field.nickname}
                            <c:if test="${false eq field.nullable}"><span style="color: red;">*</span></c:if>
                        </label>
                        <div class="col-sm-9">
                            <c:choose>
                                <c:when test="${'textarea' eq field.type}">
                                    <textarea readonly class="col-xs-10 col-sm-5" name="${field.name}">${obj[fieldname]}</textarea>
                                </c:when>
                                <c:otherwise>
                                    <input readonly type="text" name="${field.name}" value="${obj[fieldname]}" class="col-xs-10 col-sm-5">
                                </c:otherwise>
                            </c:choose>
                        </div>
                    </div>
                </c:forEach>
            </form>
        </div>
    </div>
</div>
<script>

</script>
